package com.xbn.xbnmall.auth.feign;

import com.xbn.common.to.MemberRegistTo;
import com.xbn.common.utils.R;
import com.xbn.xbnmall.auth.vo.UserLoginVo;
import com.xbn.xbnmall.auth.vo.WeiboUserToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author XBN
 * @date 2020/8/12 13:39
 * @email 78742541@qq.com
 */

@FeignClient("xbnmall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody MemberRegistTo memberRegistTo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);
    @PostMapping("/member/member/weibo/oauth2/login")
    public R oauthLogin(@RequestBody WeiboUserToken weiboUserToken);
}
